﻿using Cxx.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cxx.IDAL
{
    public interface IOrder
    {
        void Update(OrderInfo info);

        int Insert(OrderInfo info);

        OrderInfo Get(int id);

        List<OrderInfo> GetListForPage(string condition, int pageIndex, int pageSize, out int recordCount);

        List<OrderInfo> GetList(string condition);

        /// <summary>
        /// 计算总额
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        int CalculateTotal(string condition);

        bool ExistCustomer(string name);
    }
}
